<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>display</title>
		<style>
			/* span a p div看下这些元素的display样式 */
			/* display: inline不能设置width/height */
			/* 可以设置display: block(换行)、inline-block(不换行) */
			span {
				width: 200px;
				height: 100px;
				background-color: #00FF00;
				display: inline-block;
			}
			a {
				/* display: block; */
			}
		</style>
	</head>
	<body>
		<!-- 行内元素,display: inline -->
		<span>文本</span>
		<a href="http://www.baidu.com">百度首页</a>
		<!-- 块级元素,display: block -->
		<p>段落</p>
		<div>区块</div>
	</body>
</html>